package msgActivity;

import com.sangdaelee.example.kakaoproject.R;

import android.content.Context;
import android.view.LayoutInflater;
import android.widget.FrameLayout;
import android.widget.ImageView;
import android.widget.TextView;

public class ItemSend extends FrameLayout {
	
	TextView msgView;
	TextView msgDateView;
	TextView nameView;
	ImageView picView;
	
	public ItemSend(Context mContext) {
		super(mContext);
		LayoutInflater inflater = LayoutInflater.from(mContext);
		inflater.inflate(R.layout.list_item_send, this);
		msgDateView = (TextView)findViewById(R.id.dateView2);
		msgView = (TextView)findViewById(R.id.sendmessage);
		nameView = (TextView)findViewById(R.id.nameview);
		picView = (ImageView)findViewById(R.id.picView);
		
	}

	public void setData(Data data)
	{
		nameView.setText(data.name);
		msgDateView.setText(data.date);
		msgView.setText(data.msg);
		picView.setImageBitmap(data.pic);
	}

}
